<?php

/**
 * 主要用户界面框架的组件配置
*/

/*
 * |--------------------------------------------------------------------------
* | 不用拦截的uri
* |--------------------------------------------------------------------------
* |
*/
$config ['no_login'] = array (
							'login',
);

/*
 * |--------------------------------------------------------------------------
 * | 菜单权限配置
 * |--------------------------------------------------------------------------
 */
$config ['menu'] = array (
		'home' => array (
				'url' => 'home',
				'icon' => 'fa fa-home',
				'menu_name' => '首页',
				'description' => '',
				'selected' => false,
		),
    'dispatchCenter' => array (
        'url' => 'dispatchCenter',
        'icon' => 'fa fa-dashboard',
        'menu_name' => '调度中心 ',
        'description' => '',
        'selected' => false,
    ),
        'deliveryman' => array (
            'url' => '',
            'icon' => 'fa fa-credit-card',
            'menu_name' => '配送管理',
            'description' => '',
            'selected' => false,
            'sub_menu' => array (
    // 						'overtime_order' => array (
    // 								'menu_name' => '调度中心',
    // 								'url' => 'deliveryman/dispatchCenter',
    // 								'selected' => false,
    // 								'permissions' => array (
    // 										'view' => array (
    // 												'name' => '查看',
    // 												'rely_on' => array(),
    // 												'uri' => array(
    // 														'index',
    // 														'getList',
    // 														'getCourier',
    // 												)
    // 										),
    // 										'allot' => array (
    // 												'name' => '分配订单',
    // 												'rely_on' => array(),
    // 												'uri' => array(
    // 														'allot',
    // 												)
    // 										)
    // 								)
    // 						),
                'member' => array (
                    'menu_name' => '配送员',
                    'url' => 'deliveryman/member',
                    'selected' => false,
                    'permissions' => array (
                        'view' => array (
                            'name' => '查看',
                            'rely_on' => array(),
                            'uri' => array(
                                'index',
                                'getList',
                                'getAmountList',
                                'details',
                                'postion',
                                'getOrderList'
                            )
                        ),
                        'add' => array (
                            'name' => '添加',
                            'rely_on' => array('view'),
                            'uri' => array(
                                'add',
                                'save'
                            )
                        ),
                        'edit' => array (
                            'name' => '编辑',
                            'rely_on' => array('view'),
                            'uri' => array(
                                'edit',
                                'getInfo',
                                'save'
                            )
                        ),
                        'auth' => array (
                            'name' => '实名认证',
                            'rely_on' => array('view'),
                            'uri' => array(
                                'auth',
                                'getInfo',
                            )
                        ),
                        'status' => array (
                            'name' => '状态',
                            'rely_on' => array('view'),
                            'uri' => array(
                                'changeStatus',
                            )
                        ),
                    )
                ),
                'order' => array (
                    'menu_name' => '运单管理',
                    'url' => 'deliveryman/order',
                    'selected' => false,
                    'permissions' => array (
                        'view' => array (
                            'name' => '查看',
                            'rely_on' => array(),
                            'uri' => array(
                                'index',
                                'getList',
                                'details',
                            )
                        )
                    )
                ),
                'feedback' => array (
                    'menu_name' => '意见反馈',
                    'url' => 'deliveryman/feedback',
                    'selected' => false,
                    'permissions' => array (
                        'view' => array (
                            'name' => '查看',
                            'rely_on' => array(),
                            'uri' => array(
                                'index',
                                'getList',
                            )
                        ),
                        'reply' => array (
                            'name' => '回复',
                            'rely_on' => array(),
                            'uri' => array(
                                'reply',
                            )
                        ),
                        'delete' => array (
                            'name' => '删除',
                            'rely_on' => array(),
                            'uri' => array(
                                'delete',
                            )
                        )

                    )
                ),
                'withdraw_cash' => array (
                    'menu_name' => '提现',
                    'url' => 'deliveryman/withdrawCash',
                    'selected' => false,
                    'permissions' => array (
                        'view' => array (
                            'name' => '查看',
                            'rely_on' => array(),
                            'uri' => array(
                                'index',
                                'getList',
                            )
                        ),
                        'status' => array (
                            'name' => '审核',
                            'rely_on' => array(),
                            'uri' => array(
                                'changeStatus',
                            )
                        )
                    )
                ),
                'message' => array (
                    'menu_name' => '消息',
                    'url' => 'deliveryman/message',
                    'selected' => false,
                    'permissions' => array (
                        'view' => array (
                            'name' => '查看',
                            'rely_on' => array(),
                            'uri' => array(
                                'index',
                                'getMemberList',
                                'getList',
                                'history',
                                'getMessageList',
                                'getDetail'
                            )
                        ),
                        'add' => array (
                            'name' => '推送消息',
                            'rely_on' => array(),
                            'uri' => array(
                                'save',
                            )
                        )
                    )
                )
            )
        ),
    'member' => array (
        'url' => 'merchant',
        'icon' => 'fa fa-users',
        'menu_name' => '商家管理',
        'description' => '',
        'selected' => false,
        'permissions' => array (
            'view' => array (
                'name' => '查看',
                'rely_on' => array(),
                'uri' => array(
                    'index',
                    'getList',
                )
            ),
        )
    ),
    'message' => array (
        'url' => 'message/merchant',
        'icon' => 'fa fa-comment-o',
        'menu_name' => '商家消息',
        'description' => '',
        'selected' => false,
        'permissions' => array (
            'view' => array (
                'name' => '查看',
                'rely_on' => array(),
                'uri' => array(
                    'index',
                    'getList',
                )
            ),
        )
    ),
    'product' => array (
        'url' => 'member',
        'icon' => 'fa fa-sitemap',
        'menu_name' => '商品管理',
        'description' => '',
        'selected' => false,
        'sub_menu' => array (
            'category' => array (
                'menu_name' => '分类管理',
                'url' => 'product/category',
                'selected' => false,
                'permissions' => array (
                    'view' => array (
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                )
            ),
            'home' => array (
                'menu_name' => '商品管理',
                'url' => 'product/home',
                'selected' => false,
                'permissions' => array (
                    'view' => array (
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                )
            ),
            'comment' => array (
                'menu_name' => '商品评价',
                'url' => 'product/comment',
                'selected' => false,
                'permissions' => array (
                    'view' => array (
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                )
            ),
        )
    ),
    'order' => array (
        'url' => 'member',
        'icon' => 'fa fa-shopping-cart',
        'menu_name' => '订单管理',
        'description' => '',
        'selected' => false,
        'sub_menu' => array (
            'home' => array (
                'menu_name' => '订单管理',
                'url' => 'order/home',
                'selected' => false,
                'permissions' => array (
                    'view' => array (
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                )
            ),
            'service' => array (
                'menu_name' => '订单售后',
                'url' => 'order/service',
                'selected' => false,
                'permissions' => array (
                    'view' => array (
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                )
            ),
        )
    ),
    'fund' => array (
        'url' => 'fund/merchantCash',
        'icon' => 'fa  fa-credit-card',
        'menu_name' => '商家提现',
        'description' => '',
        'selected' => false,
        'permissions' => array (
            'view' => array (
                'name' => '查看',
                'rely_on' => array(),
                'uri' => array(
                    'index',
                    'getList',
                )
            ),
        )
    ),
    'statistics' => array (
        'url' => 'member',
        'icon' => 'fa fa-th',
        'menu_name' => '统计管理',
        'description' => '',
        'selected' => false,
        'sub_menu' => array (
            'sell' => array (
                'menu_name' => '销售统计',
                'url' => 'statistics/sell',
                'selected' => false,
                'permissions' => array (
                    'view' => array (
                        'name' => '查看',
                        'rely_on' => array(),
                        'uri' => array(
                            'index',
                            'getList',
                        )
                    ),
                )
            ),
//            'admin' => array (
//                'menu_name' => '平台资金',
//                'url' => 'statistics/admin',
//                'selected' => false,
//                'permissions' => array (
//                    'view' => array (
//                        'name' => '查看',
//                        'rely_on' => array(),
//                        'uri' => array(
//                            'index',
//                            'getList',
//                        )
//                    ),
//                )
//            ),
//            'bonus' => array (
//                'menu_name' => '红包统计',
//                'url' => 'statistics/bonus',
//                'selected' => false,
//                'permissions' => array (
//                    'view' => array (
//                        'name' => '查看',
//                        'rely_on' => array(),
//                        'uri' => array(
//                            'index',
//                            'getList',
//                        )
//                    ),
//                )
//            ),
        )
    ),
//    'config' => array (
//        'url' => 'member',
//        'icon' => 'fa fa-asterisk',
//        'menu_name' => '广告管理',
//        'description' => '',
//        'selected' => false,
//        'sub_menu' => array (
//            'ads' => array (
//                'menu_name' => '广告管理',
//                'url' => 'config/ads',
//                'selected' => false,
//                'permissions' => array (
//                    'view' => array (
//                        'name' => '查看',
//                        'rely_on' => array(),
//                        'uri' => array(
//                            'index',
//                            'getList',
//                        )
//                    ),
//                )
//            ),
//
//        )
//    ),
    'feedback' => array (
        'url' => 'feedback',
        'icon' => 'fa fa-clipboard',
        'menu_name' => '意见反馈',
        'description' => '',
        'selected' => false,
        'permissions' => array (
            'view' => array (
                'name' => '查看',
                'rely_on' => array(),
                'uri' => array(
                    'index',
                    'getList',
                )
            ),
            'reply' => array (
                'name' => '回复',
                'rely_on' => array('view'),
                'uri' => array(
                    'reply',
                )
            ),
            'delete' => array (
                'name' => '删除',
                'rely_on' => array('view'),
                'uri' => array(
                    'delete',
                )
            ),
        )
    )
);



 
 